package com.zh.service.impl;

import com.zh.mapper.DriverPointMapper;
import com.zh.pojo.domain.DriverPoint;
import com.zh.service.IDriverPointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DriverPointServiceImpl implements IDriverPointService {

    @Autowired

    private DriverPointMapper driverPointMapper;

    @Override
    public void save(DriverPoint point) {
        driverPointMapper.save(point);
    }

    /**
     * 查询司机坐标
     * @param orderNo 订单号
     * @return
     */
    @Override
    public List<DriverPoint> selectDriverPointByOrderNo(String orderNo) {
        return driverPointMapper.selectDriverPointByOrderNo(orderNo);
    }
}
